﻿@using QDT.Web.Admin.Models
<div class="main_title">新增 
    @Html.ActionLink("返回列表","Index")
    </div>
<div class="blank5"></div>
@using (Html.BeginForm("PostAdd", "Link", FormMethod.Post)) {
    <table class="form" cellpadding="0" cellspacing="0">
        <tbody><tr>
                   <td colspan="2" class="topTd"></td>
               </tr>
            <tr>
                <td class="item_title">网站名称:</td>
                <td class="item_input"><input type="text" class="textbox require" name="Name"></td>
            </tr>
            <tr>
                <td class="item_title">链接地址:</td>
                <td class="item_input"><input type="text" class="textbox require" name="Url"></td>
            </tr>
            <tr>
                <td class="item_title">链接分组:</td>
                <td class="item_input">
                    <select name="GroupId" class="require">
                        <option value="0">==请选择分组==</option>
                        @if(ViewData["Group"] != null) {
                            foreach(var g in ViewData["Group"] as IList<LinkGroupModel>) {
                                <option value="@g.Id">@g.Name</option>
                            }
                        }
                     </select>
                </td>
            </tr>
            <tr>
                <td class="item_title">链接图片:</td>
                <td class="item_input">
                    @Html.UploadImage("Img")
                </td>
            </tr>
            <tr>
                <td class="item_title">链接说明:</td>
                <td class="item_input"><textarea class="textarea" name="Description"></textarea></td>
            </tr>
            <tr>
                <td class="item_title">排序:</td>
                <td class="item_input"><input type="text" class="textbox" name="Sort" value="0"></td>
            </tr>
            <tr>
                <td class="item_title">状态:</td>
                <td class="item_input">
                    <lable>有效<input type="radio" name="IsEffect" value="true" checked="checked"></lable>
                    <lable>无效<input type="radio" name="IsEffect" value="false"></lable>
                </td>
            </tr>
            <tr>
                <td class="item_title">显示在首页底部:</td>
                <td class="item_input">
                    <lable>是<input type="radio" name="ShowIndex" value="true" checked="checked"></lable>
                    <lable>否<input type="radio" name="ShowIndex" value="false"></lable>
                </td>
            </tr>
	
            <tr>
                <td class="item_title"></td>
                <td class="item_input">
                    <!--隐藏元素-->
                    <!--隐藏元素-->
                    <input type="submit" class="button" value="新增">
                    <input type="reset" class="button" value="重置">
                </td>
            </tr>
            <tr>
                <td colspan="2" class="bottomTd"></td>
            </tr>
        </tbody></table>
}